package models;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Jarjarbing
 */
import javax.persistence.*;
 
import play.db.jpa.*;
import play.data.validation.*;
 
@Entity

public class MasLocation extends Model{
    
    @Required
    @MaxSize(3)
    public String MasLoc;
    
    @Required
    @ManyToOne
    public Company CompanyID;
    
    public String name;
    
   
     public MasLocation(String MasLoc, Company CompanyID) {
        this.MasLoc = MasLoc;
        this.CompanyID = CompanyID;
    }
    
    
    @Override
    public String toString() {
      return MasLoc;
    
    }  
    
}
